package org.phantom.securityframework.datapermission.internal;

import java.util.List;
import java.util.Map;

import org.phantom.securityframework.api.datapermission.DimensionType;
import org.phantom.securityframework.datapermission.DimensionQuery;
import org.phantom.securityframework.datapermission.QueryParameters;


/**
 * 过滤条件默认实现
 * @author apple
 *
 */
public class DimensionQueryDefaultImpl implements DimensionQuery{
	/**
	 * 分页条件,controller有这个参数即可
	 */
	private QueryParameters parameters;
	/**
	 * 数据过滤条件
	 * key:用户所能查看的维度
	 * value:该用户在某维度下所能查看的所有值
	 */
	private Map<String, List<DimensionType>> dimensionMappedValue;
	
	
	public DimensionQueryDefaultImpl(QueryParameters parameters,
			Map<String, List<DimensionType>> dimensionMappedValue) {
		super();
		this.parameters = parameters;
		this.dimensionMappedValue = dimensionMappedValue;
	}
	public DimensionQueryDefaultImpl() {
		super();
	}
	public QueryParameters getParameters() {
		return parameters;
	}
	public void setParameters(QueryParameters parameters) {
		this.parameters = parameters;
	}
	public Map<String, List<DimensionType>> getDimensionMappedValue() {
		return dimensionMappedValue;
	}
	public void setDimensionMappedValue(Map<String, List<DimensionType>> dimensionMappedValue) {
		this.dimensionMappedValue = dimensionMappedValue;
	}
	
	
}
